package com.dinpay.plugin.activity;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.res.Resources;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
import android.text.SpannableString;
import android.text.SpannedString;
import android.text.style.AbsoluteSizeSpan;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.ScrollView;
import android.widget.TextView;
import com.dinpay.plugin.b.a;
import com.dinpay.plugin.b.d;
import com.dinpay.plugin.b.g;
import com.dinpay.plugin.b.j;
import com.dinpay.plugin.c.a.a;
import com.dinpay.plugin.d.c;
import com.dinpay.plugin.widget.CleanEditText;
import com.dinpay.plugin.widget.b;
import java.io.ByteArrayInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class DinpayPayActivity extends DinpayBaseActivity
{
  public static String a;
  private String A;
  private String B;
  private String C;
  private String D;
  private String E;
  private String F;
  private String G;
  private String H;
  private CleanEditText I;
  private CleanEditText J;
  private CleanEditText K;
  private CleanEditText L;
  private CleanEditText M;
  private CleanEditText N;
  private String O;
  private String P;
  private String Q;
  private String R;
  private String S;
  private String T;
  private String U;
  private com.dinpay.plugin.b.i V;
  private a W;
  private List X = new ArrayList();
  private String Y;
  private CleanEditText Z;
  private String aA;
  private ProgressDialog aB;
  private b aC;
  private Handler aD = new l(this);
  private View.OnClickListener aE = new n(this);
  private AdapterView.OnItemClickListener aF = new o(this);
  private CompoundButton.OnCheckedChangeListener aG = new p(this);
  private View.OnTouchListener aH = new q(this);
  private String aa = "0";
  private Boolean ab = Boolean.valueOf(false);
  private Boolean ac = Boolean.valueOf(false);
  private Boolean ad = Boolean.valueOf(false);
  private CheckBox ae;
  private String af;
  private String ag;
  private Button ah;
  private int ai = 1;
  private LinearLayout aj;
  private LinearLayout ak;
  private LinearLayout al;
  private LinearLayout am;
  private LinearLayout an;
  private LinearLayout ao;
  private LinearLayout ap;
  private LinearLayout aq;
  private LinearLayout ar;
  private LinearLayout as;
  private LinearLayout at;
  private PopupWindow au = null;
  private ListView av = null;
  private ScrollView aw;
  private View ax = null;
  private String ay;
  private String az;
  public d b;
  private boolean c;
  private TextView d;
  private TextView e;
  private TextView f;
  private TextView g;
  private String h;
  private String i;
  private String j;
  private String k;
  private String l;
  private String m;
  private String n;
  private String o;
  private TextView p;
  private TextView q;
  private TextView r;
  private TextView s;
  private a t;
  private String u;
  private g v;
  private List w = null;
  private j x = null;
  private com.dinpay.plugin.b.e y;
  private com.dinpay.plugin.b.f z;

  protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
  {
    if (paramInt2 == 1)
    {
      this.aj.setVisibility(0);
      this.ak.setVisibility(0);
      this.al.setVisibility(0);
      this.am.setVisibility(0);
      this.an.setVisibility(0);
      this.ao.setVisibility(0);
      this.ap.setVisibility(0);
      String str1 = this.E;
      if ((str1 == null) || (str1.trim().length() <= 0) || ("null".equalsIgnoreCase(str1)))
        break label263;
    }
    label263: for (int i1 = 0; ; i1 = 1)
    {
      if (i1 == 0)
      {
        this.I.setText(this.E);
        this.I.setEnabled(false);
      }
      String str2 = getSharedPreferences("bankList", 1).getString("isAddCard", "");
      this.q.setVisibility(0);
      if (str2.equals("1"))
      {
        this.q.setText("银行及类型");
        SharedPreferences.Editor localEditor = getSharedPreferences("bankList", 0).edit();
        localEditor.putString("isAddCard", "0");
        localEditor.commit();
      }
      this.r.setVisibility(0);
      this.s.setText(paramIntent.getStringExtra("nameType"));
      this.U = paramIntent.getStringExtra("cardType");
      this.af = paramIntent.getStringExtra("bankCode");
      this.ag = paramIntent.getStringExtra("channelId");
      return;
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    int i1 = (int)(0.5F + 30.0F * getResources().getDisplayMetrics().density);
    int i2 = (int)(0.5F + 240.0F * getResources().getDisplayMetrics().density);
    int i3 = (int)(0.5F + 120.0F * getResources().getDisplayMetrics().density);
    LinearLayout.LayoutParams localLayoutParams1 = new LinearLayout.LayoutParams(-1, -1);
    localLayoutParams1.gravity = 17;
    this.ar = new LinearLayout(this);
    this.ar.setLayoutParams(localLayoutParams1);
    this.ar.setOrientation(1);
    this.ar.setBackgroundColor(Color.parseColor("#f2f2f2"));
    RelativeLayout localRelativeLayout1 = new RelativeLayout(this);
    localRelativeLayout1.setBackgroundDrawable(com.dinpay.plugin.d.i.a(getResources(), DinpayPayActivity.class, a.a.n));
    localRelativeLayout1.setLayoutParams(new LinearLayout.LayoutParams(-1, (int)(0.5F + 40.0F * getResources().getDisplayMetrics().density)));
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams2.addRule(9);
    localLayoutParams2.addRule(15);
    localLayoutParams2.leftMargin = 10;
    ImageView localImageView1 = new ImageView(this);
    localImageView1.setScaleType(ImageView.ScaleType.CENTER);
    localImageView1.setAdjustViewBounds(true);
    localImageView1.setPadding(15, 10, 0, 10);
    localImageView1.setId(200001);
    localImageView1.setBackgroundDrawable(com.dinpay.plugin.d.i.a(getResources(), BindMobileActivity.class, a.a.i));
    localImageView1.setOnClickListener(this.aE);
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(13);
    TextView localTextView1 = new TextView(this);
    localTextView1.setText("订单信息");
    localTextView1.setTextSize(18.0F);
    localTextView1.setTextColor(Color.parseColor("#FFFFFF"));
    localTextView1.setId(1000002);
    localTextView1.setGravity(17);
    RelativeLayout.LayoutParams localLayoutParams4 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams4.addRule(11);
    localLayoutParams4.addRule(15);
    localLayoutParams4.rightMargin = 10;
    ImageView localImageView2 = new ImageView(this);
    localImageView2.setScaleType(ImageView.ScaleType.CENTER);
    localImageView2.setAdjustViewBounds(true);
    localImageView2.setId(100001);
    localImageView2.setBackgroundDrawable(com.dinpay.plugin.d.i.a(getResources(), BindMobileActivity.class, a.a.m));
    localRelativeLayout1.addView(localImageView1, localLayoutParams2);
    localRelativeLayout1.addView(localTextView1, localLayoutParams3);
    localRelativeLayout1.addView(localImageView2, localLayoutParams4);
    this.ar.addView(localRelativeLayout1);
    LinearLayout.LayoutParams localLayoutParams5 = new LinearLayout.LayoutParams(i2, i3);
    localLayoutParams5.topMargin = i1;
    localLayoutParams5.bottomMargin = i1;
    localLayoutParams5.leftMargin = i1;
    localLayoutParams5.rightMargin = i1;
    localLayoutParams5.gravity = 1;
    this.aw = new ScrollView(this);
    this.aw.setScrollBarStyle(33554432);
    this.aw.setVerticalScrollBarEnabled(true);
    LinearLayout.LayoutParams localLayoutParams6 = new LinearLayout.LayoutParams(-1, -2);
    LinearLayout.LayoutParams localLayoutParams7 = new LinearLayout.LayoutParams(-1, -1);
    localLayoutParams7.gravity = 17;
    LinearLayout localLinearLayout1 = new LinearLayout(this);
    localLinearLayout1.setLayoutParams(localLayoutParams7);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setBackgroundColor(Color.parseColor("#f2f2f2"));
    LinearLayout localLinearLayout2 = new LinearLayout(this);
    localLinearLayout2.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout2.setOrientation(0);
    localLinearLayout2.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams8 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams8.gravity = 3;
    localLayoutParams8.setMargins(10, 10, 0, 0);
    TextView localTextView2 = new TextView(this);
    localTextView2.setGravity(3);
    localTextView2.setTextSize(18.0F);
    localTextView2.setTextColor(Color.parseColor("#ff50494a"));
    localTextView2.setText("商家名称：");
    this.d = new TextView(this);
    this.d.setTextSize(18.0F);
    this.d.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout2.addView(localTextView2, localLayoutParams8);
    localLinearLayout2.addView(this.d, localLayoutParams8);
    localLinearLayout1.addView(localLinearLayout2);
    LinearLayout localLinearLayout3 = new LinearLayout(this);
    localLinearLayout3.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout3.setOrientation(0);
    localLinearLayout3.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams9 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams9.gravity = 3;
    localLayoutParams9.setMargins(10, 10, 0, 0);
    TextView localTextView3 = new TextView(this);
    localTextView3.setGravity(3);
    localTextView3.setTextSize(18.0F);
    localTextView3.setText("商家单号：");
    localTextView3.setTextColor(Color.parseColor("#ff50494a"));
    this.e = new TextView(this);
    this.e.setGravity(3);
    this.e.setTextSize(18.0F);
    this.e.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout3.addView(localTextView3, localLayoutParams9);
    localLinearLayout3.addView(this.e, localLayoutParams9);
    localLinearLayout1.addView(localLinearLayout3);
    LinearLayout localLinearLayout4 = new LinearLayout(this);
    localLinearLayout4.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout4.setOrientation(0);
    localLinearLayout4.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams10 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams10.gravity = 3;
    localLayoutParams10.setMargins(10, 10, 0, 0);
    TextView localTextView4 = new TextView(this);
    localTextView4.setGravity(3);
    localTextView4.setTextSize(18.0F);
    localTextView4.setText("下单时间：");
    localTextView4.setTextColor(Color.parseColor("#ff50494a"));
    this.f = new TextView(this);
    this.f.setGravity(3);
    this.f.setTextSize(18.0F);
    this.f.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout4.addView(localTextView4, localLayoutParams10);
    localLinearLayout4.addView(this.f, localLayoutParams10);
    localLinearLayout1.addView(localLinearLayout4);
    LinearLayout localLinearLayout5 = new LinearLayout(this);
    localLinearLayout5.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout5.setOrientation(0);
    localLinearLayout5.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams11 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams11.gravity = 3;
    localLayoutParams11.setMargins(10, 10, 0, 0);
    TextView localTextView5 = new TextView(this);
    localTextView5.setGravity(3);
    localTextView5.setTextSize(18.0F);
    localTextView5.setText("订单金额：");
    localTextView5.setTextColor(Color.parseColor("#ff50494a"));
    this.g = new TextView(this);
    this.g.setGravity(3);
    this.g.setTextSize(18.0F);
    this.g.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout5.addView(localTextView5, localLayoutParams11);
    localLinearLayout5.addView(this.g, localLayoutParams11);
    localLinearLayout1.addView(localLinearLayout5);
    LinearLayout localLinearLayout6 = new LinearLayout(this);
    localLinearLayout6.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams12 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView3 = new ImageView(this);
    localImageView3.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout6.addView(localImageView3, localLayoutParams12);
    localLinearLayout1.addView(localLinearLayout6);
    LinearLayout localLinearLayout7 = new LinearLayout(this);
    localLinearLayout7.setOrientation(0);
    localLinearLayout7.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams13 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams13.gravity = 3;
    localLayoutParams13.setMargins(10, 10, 0, 0);
    TextView localTextView6 = new TextView(this);
    localTextView6.setGravity(3);
    localTextView6.setTextSize(18.0F);
    localTextView6.setText("填写银行卡信息");
    localTextView6.setTextColor(Color.parseColor("#ff50494a"));
    RelativeLayout localRelativeLayout2 = new RelativeLayout(this);
    RelativeLayout.LayoutParams localLayoutParams14 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams14.addRule(11);
    localLayoutParams14.addRule(15);
    localLayoutParams14.rightMargin = 10;
    TextView localTextView7 = new TextView(this);
    localTextView7.setGravity(5);
    localTextView7.setTextSize(18.0F);
    localTextView7.setText("支持银行列表");
    localTextView7.setTextColor(Color.parseColor("#4EC7F3"));
    localTextView7.setId(100010);
    localTextView7.setOnClickListener(this.aE);
    localLinearLayout7.addView(localTextView6, localLayoutParams13);
    localRelativeLayout2.addView(localTextView7, localLayoutParams14);
    localLinearLayout7.addView(localRelativeLayout2);
    localLinearLayout1.addView(localLinearLayout7);
    LinearLayout localLinearLayout8 = new LinearLayout(this);
    localLinearLayout8.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams15 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView4 = new ImageView(this);
    localImageView4.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout8.addView(localImageView4, localLayoutParams15);
    localLinearLayout1.addView(localLinearLayout8);
    this.aq = new LinearLayout(this);
    this.aq.setId(300001);
    this.aq.setOnClickListener(this.aE);
    this.aq.setOrientation(0);
    this.aq.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.aq.setPadding(10, 10, 0, 10);
    LinearLayout.LayoutParams localLayoutParams16 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams16.gravity = 3;
    localLayoutParams16.setMargins(10, 10, 10, 10);
    RelativeLayout localRelativeLayout3 = new RelativeLayout(this);
    localRelativeLayout3.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
    RelativeLayout.LayoutParams localLayoutParams17 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams17.addRule(15);
    localLayoutParams17.addRule(0, 3);
    localLayoutParams17.leftMargin = 2;
    RelativeLayout.LayoutParams localLayoutParams18 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams18.addRule(15);
    localLayoutParams18.addRule(0, 1);
    localLayoutParams18.rightMargin = 2;
    this.s = new TextView(this);
    this.s.setGravity(17);
    this.s.setTextSize(18.0F);
    this.s.setText("请选择");
    this.s.setTextColor(Color.parseColor("#ff969494"));
    RelativeLayout.LayoutParams localLayoutParams19 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams19.addRule(11);
    localLayoutParams19.addRule(15);
    localLayoutParams19.setMargins(10, 10, 0, 10);
    this.q = new TextView(this);
    this.q.setGravity(3);
    this.q.setTextSize(18.0F);
    this.q.setText("银行及类型");
    this.q.setId(2);
    this.q.setTextColor(Color.parseColor("#ff50494a"));
    this.r = new TextView(this);
    this.r.setGravity(3);
    this.r.setTextSize(18.0F);
    this.r.setText("");
    this.r.setId(4);
    this.r.setTextColor(Color.parseColor("#ff50494a"));
    this.r.setVisibility(8);
    ImageView localImageView5 = new ImageView(this);
    localImageView5.setScaleType(ImageView.ScaleType.FIT_XY);
    localImageView5.setAdjustViewBounds(true);
    localImageView5.setBackgroundDrawable(com.dinpay.plugin.d.i.a(getResources(), DinpayPayActivity.class, a.a.l));
    localImageView5.setOnClickListener(this.aE);
    localImageView5.setId(3);
    localRelativeLayout3.addView(this.q);
    localRelativeLayout3.addView(this.s, localLayoutParams17);
    localRelativeLayout3.addView(localImageView5, localLayoutParams19);
    localRelativeLayout3.addView(this.r, localLayoutParams18);
    this.aq.addView(localRelativeLayout3);
    localLinearLayout1.addView(this.aq);
    LinearLayout localLinearLayout9 = new LinearLayout(this);
    localLinearLayout8.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams20 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView6 = new ImageView(this);
    localImageView6.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout9.addView(localImageView6, localLayoutParams20);
    localLinearLayout1.addView(localLinearLayout9);
    new LinearLayout(this).setOrientation(1);
    new LinearLayout.LayoutParams(-1, -2);
    this.aj = new LinearLayout(this);
    this.aj.setOrientation(0);
    this.aj.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.aj.setPadding(10, 0, 0, 0);
    this.aj.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams21 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams21.gravity = 3;
    localLayoutParams21.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams22 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams22.gravity = 5;
    localLayoutParams22.gravity = 16;
    LinearLayout localLinearLayout10 = new LinearLayout(this);
    localLinearLayout10.setOrientation(0);
    localLinearLayout10.setLayoutParams(localLayoutParams22);
    localLinearLayout10.setPadding(10, 5, 0, 0);
    TextView localTextView8 = new TextView(this);
    localTextView8.setGravity(3);
    localTextView8.setTextSize(18.0F);
    localTextView8.setText("银行卡号");
    localTextView8.setTextColor(Color.parseColor("#ff50494a"));
    this.J = new CleanEditText(this);
    this.J.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.J.setGravity(16);
    this.J.setTextSize(18.0F);
    this.J.setTextColor(Color.parseColor("#ff50494a"));
    this.J.setEllipsize(null);
    this.J.setEms(10);
    this.J.setSingleLine();
    CleanEditText localCleanEditText1 = this.J;
    InputFilter[] arrayOfInputFilter1 = new InputFilter[1];
    arrayOfInputFilter1[0] = new InputFilter.LengthFilter(25);
    localCleanEditText1.setFilters(arrayOfInputFilter1);
    this.J.setInputType(2);
    this.aj.addView(localTextView8, localLayoutParams21);
    localLinearLayout10.addView(this.J, localLayoutParams22);
    this.aj.addView(localLinearLayout10);
    localLinearLayout1.addView(this.aj);
    LinearLayout localLinearLayout11 = new LinearLayout(this);
    localLinearLayout11.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams23 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView7 = new ImageView(this);
    localImageView7.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout11.addView(localImageView7, localLayoutParams23);
    localLinearLayout1.addView(localLinearLayout11);
    this.ak = new LinearLayout(this);
    this.ak.setOrientation(0);
    this.ak.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.ak.setPadding(10, 0, 0, 0);
    this.ak.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams24 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams24.gravity = 3;
    localLayoutParams24.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams25 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams25.gravity = 5;
    localLayoutParams25.gravity = 16;
    LinearLayout localLinearLayout12 = new LinearLayout(this);
    localLinearLayout12.setOrientation(0);
    localLinearLayout12.setLayoutParams(localLayoutParams25);
    localLinearLayout12.setPadding(10, 5, 0, 0);
    TextView localTextView9 = new TextView(this);
    localTextView9.setGravity(3);
    localTextView9.setTextSize(18.0F);
    localTextView9.setText("有  效  期");
    localTextView9.setTextColor(Color.parseColor("#ff50494a"));
    this.K = new CleanEditText(this);
    this.K.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.K.setGravity(16);
    this.K.setTextSize(18.0F);
    SpannableString localSpannableString1 = new SpannableString("示例：01/19  输入0119");
    localSpannableString1.setSpan(new AbsoluteSizeSpan(14, true), 0, localSpannableString1.length(), 33);
    this.K.setHint(new SpannedString(localSpannableString1));
    this.K.setTextColor(Color.parseColor("#ff50494a"));
    this.K.setEllipsize(null);
    this.K.setEms(10);
    this.K.setSingleLine();
    CleanEditText localCleanEditText2 = this.K;
    InputFilter[] arrayOfInputFilter2 = new InputFilter[1];
    arrayOfInputFilter2[0] = new InputFilter.LengthFilter(4);
    localCleanEditText2.setFilters(arrayOfInputFilter2);
    this.K.setInputType(2);
    this.ak.addView(localTextView9, localLayoutParams24);
    localLinearLayout12.addView(this.K, localLayoutParams25);
    this.ak.addView(localLinearLayout12);
    localLinearLayout1.addView(this.ak);
    LinearLayout localLinearLayout13 = new LinearLayout(this);
    localLinearLayout13.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams26 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView8 = new ImageView(this);
    localImageView8.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout13.addView(localImageView8, localLayoutParams26);
    localLinearLayout1.addView(localLinearLayout13);
    this.al = new LinearLayout(this);
    this.al.setOrientation(0);
    this.al.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.al.setPadding(10, 0, 0, 0);
    this.al.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams27 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams27.gravity = 3;
    localLayoutParams27.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams28 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams28.gravity = 5;
    localLayoutParams28.gravity = 16;
    LinearLayout localLinearLayout14 = new LinearLayout(this);
    localLinearLayout14.setOrientation(0);
    localLinearLayout14.setLayoutParams(localLayoutParams28);
    localLinearLayout14.setPadding(10, 5, 0, 0);
    TextView localTextView10 = new TextView(this);
    localTextView10.setGravity(3);
    localTextView10.setTextSize(18.0F);
    localTextView10.setText("C   V  V  2");
    localTextView10.setTextColor(Color.parseColor("#ff50494a"));
    this.L = new CleanEditText(this);
    this.L.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.L.setGravity(16);
    this.L.setTextSize(18.0F);
    this.L.setTextColor(Color.parseColor("#ff50494a"));
    this.L.setEllipsize(null);
    this.L.setEms(10);
    this.L.setSingleLine();
    CleanEditText localCleanEditText3 = this.L;
    InputFilter[] arrayOfInputFilter3 = new InputFilter[1];
    arrayOfInputFilter3[0] = new InputFilter.LengthFilter(3);
    localCleanEditText3.setFilters(arrayOfInputFilter3);
    this.L.setInputType(2);
    SpannableString localSpannableString2 = new SpannableString("信用卡背面3位CVV2码");
    localSpannableString2.setSpan(new AbsoluteSizeSpan(14, true), 0, localSpannableString2.length(), 33);
    this.L.setHint(new SpannedString(localSpannableString2));
    this.al.addView(localTextView10, localLayoutParams27);
    localLinearLayout14.addView(this.L, localLayoutParams28);
    this.al.addView(localLinearLayout14);
    localLinearLayout1.addView(this.al);
    LinearLayout localLinearLayout15 = new LinearLayout(this);
    localLinearLayout15.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams29 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView9 = new ImageView(this);
    localImageView9.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout15.addView(localImageView9, localLayoutParams29);
    localLinearLayout1.addView(localLinearLayout15);
    this.am = new LinearLayout(this);
    this.am.setOrientation(0);
    this.am.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.am.setPadding(10, 0, 0, 0);
    this.am.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams30 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams30.gravity = 3;
    localLayoutParams30.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams31 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams31.gravity = 5;
    localLayoutParams31.gravity = 16;
    LinearLayout localLinearLayout16 = new LinearLayout(this);
    localLinearLayout16.setOrientation(0);
    localLinearLayout16.setLayoutParams(localLayoutParams31);
    localLinearLayout16.setPadding(10, 5, 0, 0);
    TextView localTextView11 = new TextView(this);
    localTextView11.setGravity(3);
    localTextView11.setTextSize(18.0F);
    localTextView11.setText("姓        名");
    localTextView11.setTextColor(Color.parseColor("#ff50494a"));
    this.M = new CleanEditText(this);
    this.M.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.M.setGravity(16);
    this.M.setTextSize(18.0F);
    this.M.setTextColor(Color.parseColor("#ff50494a"));
    this.M.setEllipsize(null);
    this.M.setEms(10);
    this.M.setSingleLine();
    this.am.addView(localTextView11, localLayoutParams30);
    localLinearLayout16.addView(this.M, localLayoutParams31);
    this.am.addView(localLinearLayout16);
    localLinearLayout1.addView(this.am);
    LinearLayout localLinearLayout17 = new LinearLayout(this);
    localLinearLayout17.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams32 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView10 = new ImageView(this);
    localImageView10.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout17.addView(localImageView10, localLayoutParams32);
    localLinearLayout1.addView(localLinearLayout17);
    this.an = new LinearLayout(this);
    this.an.setOrientation(0);
    this.an.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.an.setPadding(10, 0, 0, 0);
    this.an.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams33 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams33.gravity = 3;
    localLayoutParams33.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams34 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams34.gravity = 5;
    localLayoutParams34.gravity = 16;
    LinearLayout localLinearLayout18 = new LinearLayout(this);
    localLinearLayout18.setOrientation(0);
    localLinearLayout18.setLayoutParams(localLayoutParams34);
    localLinearLayout18.setPadding(10, 5, 0, 0);
    TextView localTextView12 = new TextView(this);
    localTextView12.setGravity(3);
    localTextView12.setTextSize(18.0F);
    localTextView12.setText("身份证号");
    localTextView12.setTextColor(Color.parseColor("#ff50494a"));
    this.N = new CleanEditText(this);
    this.N.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.N.setGravity(16);
    this.N.setTextSize(18.0F);
    this.N.setTextColor(Color.parseColor("#ff50494a"));
    this.N.setEllipsize(null);
    this.N.setEms(10);
    this.N.setSingleLine();
    this.an.addView(localTextView12, localLayoutParams33);
    localLinearLayout18.addView(this.N, localLayoutParams34);
    this.an.addView(localLinearLayout18);
    localLinearLayout1.addView(this.an);
    LinearLayout localLinearLayout19 = new LinearLayout(this);
    localLinearLayout19.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams35 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView11 = new ImageView(this);
    localImageView11.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout19.addView(localImageView11, localLayoutParams35);
    localLinearLayout1.addView(localLinearLayout19);
    this.ao = new LinearLayout(this);
    this.ao.setOrientation(0);
    this.ao.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.ao.setPadding(10, 0, 0, 0);
    LinearLayout.LayoutParams localLayoutParams36 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams36.gravity = 3;
    localLayoutParams36.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams37 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams37.gravity = 5;
    localLayoutParams37.gravity = 16;
    LinearLayout localLinearLayout20 = new LinearLayout(this);
    localLinearLayout20.setOrientation(0);
    localLinearLayout20.setLayoutParams(localLayoutParams37);
    localLinearLayout20.setPadding(10, 5, 0, 0);
    TextView localTextView13 = new TextView(this);
    localTextView13.setGravity(3);
    localTextView13.setTextSize(18.0F);
    localTextView13.setText("手机号码");
    localTextView13.setTextColor(Color.parseColor("#ff50494a"));
    this.I = new CleanEditText(this);
    this.I.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.I.setGravity(16);
    this.I.setTextSize(18.0F);
    this.I.setTextColor(Color.parseColor("#ff50494a"));
    this.I.setEllipsize(null);
    this.I.setEms(10);
    this.I.setSingleLine();
    this.I.setEnabled(false);
    this.ao.addView(localTextView13, localLayoutParams36);
    localLinearLayout20.addView(this.I, localLayoutParams37);
    this.ao.addView(localLinearLayout20);
    localLinearLayout1.addView(this.ao);
    LinearLayout localLinearLayout21 = new LinearLayout(this);
    localLinearLayout21.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams38 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView12 = new ImageView(this);
    localImageView12.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout21.addView(localImageView12, localLayoutParams38);
    localLinearLayout1.addView(localLinearLayout21);
    this.ap = new LinearLayout(this);
    this.ap.setOrientation(0);
    this.ap.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.ap.setPadding(10, 0, 0, 0);
    LinearLayout.LayoutParams localLayoutParams39 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams39.gravity = 3;
    localLayoutParams39.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams40 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams40.gravity = 16;
    LinearLayout localLinearLayout22 = new LinearLayout(this);
    localLinearLayout22.setOrientation(0);
    localLinearLayout22.setLayoutParams(localLayoutParams40);
    localLinearLayout22.setPadding(10, 5, 0, 0);
    TextView localTextView14 = new TextView(this);
    localTextView14.setGravity(3);
    localTextView14.setTextSize(18.0F);
    localTextView14.setText("验  证  码");
    localTextView14.setTextColor(Color.parseColor("#ff50494a"));
    this.Z = new CleanEditText(this);
    this.Z.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.Z.setGravity(16);
    this.Z.setTextSize(18.0F);
    this.Z.setTextColor(Color.parseColor("#ff50494a"));
    this.Z.setEms(6);
    this.Z.setSingleLine();
    CleanEditText localCleanEditText4 = this.Z;
    InputFilter[] arrayOfInputFilter4 = new InputFilter[1];
    arrayOfInputFilter4[0] = new InputFilter.LengthFilter(6);
    localCleanEditText4.setFilters(arrayOfInputFilter4);
    this.Z.setInputType(2);
    SpannableString localSpannableString3 = new SpannableString("短信验证码");
    localSpannableString3.setSpan(new AbsoluteSizeSpan(14, true), 0, localSpannableString3.length(), 33);
    this.Z.setHint(new SpannedString(localSpannableString3));
    LinearLayout localLinearLayout23 = new LinearLayout(this);
    localLinearLayout23.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams41 = new LinearLayout.LayoutParams(50, -1);
    ImageView localImageView13 = new ImageView(this);
    localImageView13.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout23.addView(localImageView13, localLayoutParams41);
    LinearLayout.LayoutParams localLayoutParams42 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams40.gravity = 5;
    localLayoutParams40.gravity = 16;
    localLayoutParams40.setMargins(0, 0, 0, 0);
    LinearLayout localLinearLayout24 = new LinearLayout(this);
    localLinearLayout24.setOrientation(0);
    localLinearLayout24.setPadding(10, 15, 0, 0);
    this.p = new TextView(this);
    this.p.setTextSize(18.0F);
    this.p.setText("获取验证码");
    this.p.setTextColor(Color.parseColor("#4EC7F3"));
    this.p.setId(100003);
    this.ap.addView(localTextView14, localLayoutParams39);
    localLinearLayout22.addView(this.Z, localLayoutParams40);
    this.ap.addView(localLinearLayout22);
    localLinearLayout24.addView(this.p, localLayoutParams42);
    this.ap.addView(localLinearLayout24);
    localLinearLayout1.addView(this.ap);
    this.at = new LinearLayout(this);
    this.at.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams43 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView14 = new ImageView(this);
    localImageView14.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    this.at.addView(localImageView14, localLayoutParams43);
    localLinearLayout1.addView(this.at);
    LinearLayout localLinearLayout25 = new LinearLayout(this);
    localLinearLayout25.setOrientation(0);
    localLinearLayout25.setPadding(10, 10, 0, 10);
    LinearLayout.LayoutParams localLayoutParams44 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams44.gravity = 3;
    localLayoutParams44.gravity = 16;
    LinearLayout.LayoutParams localLayoutParams45 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams45.gravity = 5;
    localLayoutParams45.gravity = 16;
    this.ae = new CheckBox(this);
    this.ae.setText("我接受");
    this.ae.setChecked(true);
    this.ae.setTextSize(15.0F);
    this.ae.setTextColor(Color.parseColor("#ff50494a"));
    this.ae.setOnCheckedChangeListener(this.aG);
    TextView localTextView15 = new TextView(this);
    localTextView15.setTextSize(15.0F);
    localTextView15.setText("《智付快捷支付协议》");
    localTextView15.setTextColor(Color.parseColor("#4EC7F3"));
    localTextView15.setOnClickListener(this.aE);
    localTextView15.setId(100004);
    localLinearLayout25.addView(this.ae, localLayoutParams44);
    localLinearLayout25.addView(localTextView15, localLayoutParams45);
    localLinearLayout1.addView(localLinearLayout25);
    this.as = new LinearLayout(this);
    this.as.setOrientation(0);
    this.as.setPadding(0, 10, 0, 10);
    LinearLayout.LayoutParams localLayoutParams46 = new LinearLayout.LayoutParams(-1, (int)(0.5F + 45.0F * getResources().getDisplayMetrics().density));
    localLayoutParams46.gravity = 17;
    localLayoutParams46.setMargins(10, 30, 10, 10);
    this.ah = new Button(this);
    this.ah.setBackgroundColor(Color.parseColor("#258EE5"));
    this.ah.setTextColor(Color.parseColor("#FFFFFF"));
    this.ah.setTextSize(18.0F);
    this.ah.setText("立即支付");
    this.ah.setOnTouchListener(this.aH);
    this.as.addView(this.ah, localLayoutParams46);
    localLinearLayout1.addView(this.as);
    this.aw.addView(localLinearLayout1, localLayoutParams6);
    this.ar.addView(this.aw);
    setContentView(this.ar);
    ExitApplication.a().a(this);
    Intent localIntent = getIntent();
    if (localIntent != null)
    {
      this.u = localIntent.getStringExtra("xml");
      this.E = localIntent.getStringExtra("mobileNumber");
      this.F = localIntent.getStringExtra("gateway_id");
      this.G = localIntent.getStringExtra("orderkey");
      this.H = localIntent.getStringExtra("merchantname");
      a = localIntent.getStringExtra("ActivityName");
    }
    if (this.u == null)
    {
      c("商家请求报文不能为空");
      return;
    }
    ByteArrayInputStream localByteArrayInputStream = new ByteArrayInputStream(this.u.getBytes());
    try
    {
      this.b = com.dinpay.plugin.d.f.b(localByteArrayInputStream);
      if (this.b != null)
      {
        this.j = this.b.h();
        this.g.setText(this.j);
        this.h = this.b.f();
        this.e.setText(this.h);
        this.i = this.b.g();
        this.f.setText(this.i);
        this.d.setText(this.H);
      }
      if (!com.dinpay.plugin.d.e.a(this.b))
      {
        c((String)c.a.get(com.dinpay.plugin.d.e.a));
        return;
      }
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      c("商家请求报文格式有误");
      return;
    }
    NetworkInfo localNetworkInfo = ((ConnectivityManager)getSystemService("connectivity")).getActiveNetworkInfo();
    if ((localNetworkInfo != null) && (localNetworkInfo.isConnected()));
    for (int i4 = 1; i4 == 0; i4 = 0)
    {
      c("无法连接网络,请检查网络配置");
      return;
    }
    this.aB = new ProgressDialog(this);
    this.aB.setProgress(0);
    this.aB.setProgressDrawable(com.dinpay.plugin.d.i.a(getResources(), DinpayPayActivity.class, a.a.d));
    this.aB.setMessage("正在加载数据，请稍等！");
    this.aB.setCancelable(true);
    this.aB.show();
    Executors.newSingleThreadExecutor().execute(new r(this));
    this.t = new a();
    this.p.setOnClickListener(this.aE);
  }

  protected void onDestroy()
  {
    super.onDestroy();
    if (this.aB != null)
      this.aB.dismiss();
    if (this.aC != null)
    {
      this.aC.cancel();
      this.aC = null;
    }
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    if (paramKeyEvent.getAction() == 0)
      switch (paramInt)
      {
      default:
      case 4:
      }
    while (true)
    {
      return true;
      if ((this.au != null) && (this.au.isShowing()))
      {
        this.au.dismiss();
        this.au = null;
      }
      else
      {
        finish();
      }
    }
  }

  private final class a extends CountDownTimer
  {
    public a()
    {
      super(1000L);
    }

    public final void onFinish()
    {
      DinpayPayActivity.O(DinpayPayActivity.this).setText("重发短信验证码");
      DinpayPayActivity.O(DinpayPayActivity.this).setClickable(true);
    }

    public final void onTick(long paramLong)
    {
      DinpayPayActivity.O(DinpayPayActivity.this).setClickable(false);
      DinpayPayActivity.O(DinpayPayActivity.this).setText(paramLong / 1000L + "秒后重发");
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.DinpayPayActivity
 * JD-Core Version:    0.6.2
 */